package sugar

func ClonePtr[T any](val *T) *T {
	if val == nil {
		return nil
	}
	newVal := *val
	return &newVal
}

func ValuePtr[T any](val T) *T {
	newVal := val
	return &newVal
}
